

        <g:set var="entityName" value="${message(code: 'restTime.label', default: 'RestTime')}" />
                
                
                <div class="dialog">
                    <table>
                        <tbody>
                            
                            <tr class="prop">
                                <td valign="top" class="name">
                                     上午：<g:select name="morning" from="${['一节课','二节课','三节课','四节课']}"    keys ="${[1,2,3,4]}"/>
                                </td>
                                <td valign="top">
                                     下午：<g:select name="afternoon" from="${['一节课','二节课','三节课','四节课']}"    keys ="${[1,2,3,4]}"/>                                     
                                     <button id="submitCourse">确定</button>
                                     
                                </td>
                            </tr>
                         
                        </tbody>
                    </table>

                <table>
                    <tr><td>
                        <table style="width:300px">
                            <tr><td colspan="2">如今的课时安排</td></tr> 
                            <tbody>
                                 <g:each in="${restTimeInstanceList}" status="i" var="restTimeInstance">
                                    <tr>
                                        <td>第${i+1}节课</td>
                                        <td>
                                        上课时间：${restTimeInstance.startHour}点${restTimeInstance.startMinute}分
                                        </br>
                                        下课时间：${restTimeInstance.endHour}点${restTimeInstance.endMinute}分
                                        </td>                        
                                    </tr>
                                </g:each>
                            </tbody>
                        </table>
                    </td>
                    <td>
                    <table style="width:300px">
                        <tr><td colspan="2">上午的课时安排</td></tr> 
                        <tbody id="morningCourse">
                        </tbody>
                    </table>
                    <br>
                    <table style="width:300px">
                        <tr><td colspan="2">下午的课时安排</td></tr> 
                        <tbody id="afternoonCourse">
                        </tbody>
                    </table>
                    </td></tr>
                </table>
                    <textarea id="templateleCourse" style="display:none">
                    {#foreach $T.employee as c}
                            <tr><td>第{$T.c}节课</td>
                            <td class="muchMorningCourse">
                            上课时间：
                            <select id="selectMorningStartHour{$T.c}" xeduCourse="{$T.c}" style="width:40px">
                                <option value="6" >6</option>
                                <option value="7" >7</option>
                                <option value="8" >8</option>
                                <option value="9" >9</option>
                                <option value="10" >10</option>
                                <option value="11" >11</option>
                                <option value="12" >12</option>               
                            </select>点
                            <select id="selectMorningStartMinute{$T.c}"  style="width:40px">
                                <option value="00" >00</option>
                                <option value="05" >05</option>
                                <option value="10" >10</option>
                                <option value="15" >15</option>
                                <option value="20" >20</option>
                                <option value="25" >25</option>
                                <option value="30" >30</option>
                                <option value="35" >35</option>
                                <option value="40" >40</option>
                                <option value="45" >45</option>
                                <option value="50" >50</option>
                                <option value="55" >55</option>
                            </select>分<br>
                            下课时间：
                            <select id="selectMorningEndHour{$T.c}"  style="width:40px">
                                <option value="6" >6</option>
                                <option value="7" >7</option>
                                <option value="8" >8</option>
                                <option value="9" >9</option>
                                <option value="10" >10</option>
                                <option value="11" >11</option>
                                <option value="12" >12</option>
                            </select>点
                            <select id="selectMorningEndMinute{$T.c}"  style="width:40px">
                                <option value="00" >00</option>
                                <option value="05" >05</option>
                                <option value="10" >10</option>
                                <option value="15" >15</option>
                                <option value="20" >20</option>
                                <option value="25" >25</option>
                                <option value="30" >30</option>
                                <option value="35" >35</option>
                                <option value="40" >40</option>
                                <option value="45" >45</option>
                                <option value="50" >50</option>
                                <option value="55" >55</option>
                            </select>分
                            </td></tr>
                     {#/for}
                     </textarea>

                    <textarea id="templateleAfternoonCourse" style="display:none">
                    {#foreach $T.employee as c}
                            <tr><td>第{$T.c}节课</td>
                            <td class="muchAfternoonCourse">
                            上课时间：
                            <select id="selectAfternoonStartHour{$T.c}"  xeduCourse="{$T.c}"  style="width:40px">
                                <option value="13" >13</option>
                                <option value="14" >14</option>
                                <option value="15" >15</option>
                                <option value="16" >16</option>
                                <option value="17" >17</option>
                                <option value="18" >18</option>
                                <option value="19" >19</option>                            
                            </select>点
                            <select id="selectAfternoonStartMinute{$T.c}"  style="width:40px">
                                <option value="00" >00</option>
                                <option value="05" >05</option>
                                <option value="10" >10</option>
                                <option value="15" >15</option>
                                <option value="20" >20</option>
                                <option value="25" >25</option>
                                <option value="30" >30</option>
                                <option value="35" >35</option>
                                <option value="40" >40</option>
                                <option value="45" >45</option>
                                <option value="50" >50</option>
                                <option value="55" >55</option>
                            </select>分<br>
                            下课时间：
                            <select id="selectAfternoonEndHour{$T.c}"  style="width:40px">
                                <option value="13" >13</option>
                                <option value="14" >14</option>
                                <option value="15" >15</option>
                                <option value="16" >16</option>
                                <option value="17" >17</option>
                                <option value="18" >18</option>
                                <option value="19" >19</option>
                            </select>点
                            <select id="selectAfternoonEndMinute{$T.c}"  style="width:40px">
                                <option value="00" >00</option>
                                <option value="05" >05</option>
                                <option value="10" >10</option>
                                <option value="15" >15</option>
                                <option value="20" >20</option>
                                <option value="25" >25</option>
                                <option value="30" >30</option>
                                <option value="35" >35</option>
                                <option value="40" >40</option>
                                <option value="45" >45</option>
                                <option value="50" >50</option>
                                <option value="55" >55</option>
                            </select>分
                            </td></tr>
                     {#/for}
                     </textarea>
                </div>
                <g:form action="save" method="post" name="restTimeCreate">
                 <g:hiddenField  name="restTimeList" maxlength="50"/>
                                     
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
                </g:form>
                
 